package com.zhny.sensor.service;

import com.zhny.sensor.dao.ProgramVersionRepository;
import com.zhny.sensor.entity.ProgramVersion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Auther: zhy
 * @Date: 2019/11/25
 * @Description: 固件版本信息服务
 */
@Service
public class ProgramVersionService {

    @Autowired
    private ProgramVersionRepository programVersionRepository;


    /**
     * 查询版本信息
     *
     * @return ProgramVersion
     */
    public ProgramVersion getProgramVersion() {
        return programVersionRepository.findById("1").get();
    }

}
